<!--{include manage_header}-->

<div id="bdw" class="bdw">
<div id="bd" class="cf">
<div id="coupons">
	<div class="dashboard" id="dashboard">
		<ul>${mcurrent_misc('invite')}</ul>
	</div>
    <div id="content" class="coupons-box clear mainwide">
		<div class="box clear">
            <div class="box-top"></div>
            <div class="box-content">
                <div class="head">
				<!--{if 'index'==$s}-->
                    <h2>to be pay bonus (amount：<span class="currency">{$currency}</span>{$summary})</h2>
				<!--{else}-->
                    <h2>paid bonus (amount：<span class="currency">{$currency}</span>{$summary})</h2>
				<!--{/if}-->
					<ul class="filter">
						<li><form action="/manage/misc/invite.php" method="get">invitor Email：<input type="text" name="memail" value="${htmlspecialchars($memail)}" class="h-input" />&nbsp;<input type="submit" value="filter" class="formbutton"  style="padding:1px 6px;"/><form></li><li>${mcurrent_misc_invite($s)}</li>
					</ul>
				</div>
                <div class="sect">
					<table id="orders-list" cellspacing="0" cellpadding="0" border="0" class="coupons-table">
					<tr><th width="350">item</th><th width="150">user</th><th width="150">invitee/th><th width="140">time</th><!--{if 'index'==$s}--><th width="150">Operate</th><!--{else}--><th width="150">Operator</th><!--{/if}--></tr>
					<!--{loop $invites $index $one}-->
					<tr ${$index%2?'':'class="alt"'} id="order-list-id-{$one['id']}">
						<td><a class="deal-title" href="/team.php?id={$one['team_id']}" target="_blank">{$teams[$one['team_id']]['title']}</a></td>
						<td nowrap><a class="ajaxlink" href="/ajax/manage/userview.php?id={$one['user_id']}">{$users[$one['user_id']]['email']}</a><br/>{$users[$one['user_id']]['username']}<br/>{$one['user_ip']}</td>
						<td nowrap><a class="ajaxlink" href="/ajax/manage/userview.php?id={$one['other_user_id']}">{$users[$one['other_user_id']]['email']}</a><br/>{$users[$one['other_user_id']]['username']}<br/>{$one['other_user_ip']}</td>
						<td nowrap>${date('Y-m-d H:i', $one['create_time'])}<br/>${date('Y-m-d H:i', $one['buy_time'])}</td>
						<td class="op" nowrap><!--{if 'index'==$s}--><a href="/ajax/manage.php?action=inviteok&id={$one['id']}" class="ajaxlink" ask="are sure ？">sure</a>｜<a href="/ajax/manage.php?action=inviteremove&id={$one['id']}" class="ajaxlink remove">remove</a><!--{else}-->{$users[$one['admin_id']]['email']}<br/>{$users[$one['admin_id']]['username']}<!--{/if}--></td>
					</tr>
					<!--{/loop}-->
					<tr><td colspan="8">{$pagestring}</tr>
                    </table>
				</div>
            </div>
            <div class="box-bottom"></div>
        </div>
    </div>
</div>
</div> <!-- bd end -->
</div> <!-- bdw end -->

<!--{include manage_footer}-->
